home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / standard / writergb.z / writergb
Encoding:
Text File  |  2002-10-03  |  3.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4. wwwwrrrriiiitttteeeeRRRRGGGGBBBB((((3333GGGG))))                                                      wwwwrrrriiiitttteeeeRRRRGGGGBBBB((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      wwwwrrrriiiitttteeeeRRRRGGGGBBBB - paints a row of pixels on the screen
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd wwwwrrrriiiitttteeeeRRRRGGGGBBBB((((nnnn,,,, rrrreeeedddd,,,, ggggrrrreeeeeeeennnn,,,, bbbblllluuuueeee))))
  13.      sssshhhhoooorrrrtttt nnnn;;;;
  14.      RRRRGGGGBBBBvvvvaaaalllluuuueeee rrrreeeedddd[[[[]]]],,,, ggggrrrreeeeeeeennnn[[[[]]]],,,, bbbblllluuuueeee[[[[]]]];;;;
  15.  
  16. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  17.      _n       expects the number of pixels that you want to paint.
  18.  
  19.      _r_e_d     expects an array containing red values for the pixels you paint.
  20.              You need a red value for each pixel you paint.
  21.  
  22.      _g_r_e_e_n   expects an array containing green values for the pixels you
  23.              paint.  You need a green value for each pixel you paint.
  24.  
  25.      _b_l_u_e    expects an array containing blue values for the pixels you paint.
  26.              You need a blue value for each pixel you paint.
  27.  
  28. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  29.      wwwwrrrriiiitttteeeeRRRRGGGGBBBB paints a row of pixels on the screen in RGB mode.  The starting
  30.      location is the current character position.  The system updates the
  31.      current character position to one pixel to the right of the last painted
  32.      pixel.  Pixels are painted from left to right, and are clipped to the
  33.      current screenmask.  wwwwrrrriiiitttteeeeRRRRGGGGBBBB does not automatically wrap from one line
  34.      to the next.  The current character position becomes undefined if the new
  35.      position is outside the viewport.
  36.  
  37.      wwwwrrrriiiitttteeeeRRRRGGGGBBBB supplies a 24-bit RGB value (8 bits for each color) for each
  38.      pixel.  This value is written directly into the bitplanes.
  39.  
  40. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  41.      lrectwrite
  42.  
  43. NNNNOOOOTTTTEEEESSSS
  44.      wwwwrrrriiiitttteeeeRRRRGGGGBBBB should not be used in new development.  Rather, pixels should be
  45.      written using the high-performance llllrrrreeeeccccttttwwwwrrrriiiitttteeee command.
  46.  
  47.      This routine is available only in immediate mode.
  48.  
  49.      When there are only 12 color bitplanes available, the lower 4 bits of
  50.      each color are ignored.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.